/**
 * @(#)Status Display.java
 *
 *
 * @author 
 * @version 1.00 2010/1/26
 */
import javax.swing.*;
import java.awt.*;

public class StatusDisplay extends JFrame
{
	public static final int FRAME_WIDTH 	= 150;
	public static final int FRAME_HEIGHT 	= 100;
	public static final int FRAME_X_ORIGIN	= 1050;
	public static final int FRAME_Y_ORIGIN	= 300;
	private JPanel display_panel;
	private JTextField score_area;
	private Container gui_contents;
    public StatusDisplay() 
    {
    	setDefaultCloseOperation(EXIT_ON_CLOSE);
    	setTitle("Asteroids Status Window");
    	setSize(FRAME_WIDTH, FRAME_HEIGHT);
    	setLocation(FRAME_X_ORIGIN, FRAME_Y_ORIGIN);
    	
    	display_panel = new JPanel();
    	score_area = new JTextField();
    	//score_area.setSize(20);
    	score_area.setText("score: " + "12321");
    	display_panel.add(score_area);
    	gui_contents = getContentPane();
    	gui_contents.add(display_panel);
    	
    	setVisible(true);
    }
    
    public void SetScoreDisplay (int score)
    {
    	score_area.setText("score: " + score);
    }
    
}